import request from '@/utils/request'

export function getHospitalData(user_id) {
  return request({
    url: `/hospital/info?user_id=${user_id}`,
    method: 'get'
  })
}

export function getProjectRecommendData(user_id, per_page) {
  return request({
    url: `/product?hospital_id=${user_id}&orderBy=selling_price_asc&per_page=${per_page}`,
    method: 'get'
  })
}

export function getDoctorTeamData(hospitalid) {
  return request({
    url: `doctor/list?hospital_id=${hospitalid}`,
    method: 'get'
  })
}

export function getdiaryData(doctor_id, per_page) {
  return request({
    url: `/diary-group?hospital_id=${doctor_id}&per_page=${per_page}`,
    method: 'get'
  })
}
